# import requests
# import re
#
# response = requests.get('https://www.sanchuangedu.cn/')
# # print(response.text)
# ret = re.findall(r"src=\"(.*jpg|.*png)\"",response.text)
# print(ret)
# a = 0
# for i in ret:
#     url = "https://www.sanchuangedu.cn"+i if i[0] == "/" else i
#     response1 = requests.get(url)
#     tl = "C:\\Users\\wei\\Desktop\\re\\" + str(a) + '.jpg'
#     with open(tl, 'wb') as fp:
#         fp.write(response1.content)
#     a += 1



# #匹配里面的每一个单词，引号部分作为一个单词输出
# msg = "san chuang tong le, welcom ,'hello world', learn python"
# ret = re.findall(r"\'[a-z]+\s[a-z]+\'",msg)
# ret = re.findall(r"([a-z]+|\'[a-z]+\s[a-z]+\')",msg)
# print(ret)
